<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
	
	<util:label value="#{i18n.ClientePortal_NomeCompleto}" />
	<div class="grid_18">
		<p:inputText value="#{clientePortalBean.clientePortalInstance.nomeCompleto}" styleClass="width_18"
			required="true" requiredMessage="#{i18n.ClientePortal_Required_NomeCompleto}"/>
	</div>
	
	<util:label grid="9" value="#{i18n.ClientePortal_NomeCurto}" />
	<util:label grid="9" value="#{i18n.ClientePortal_Situacao}" />
	<div class="grid_9">
		<p:inputText value="#{clientePortalBean.clientePortalInstance.nomeCurto}" styleClass="width_8"
			required="true" requiredMessage="#{i18n.ClientePortal_Required_NomeCurto}"/>
	</div>
	<div class="grid_9">
		<p:inputText value="#{clientePortalBean.clientePortalInstance.situacao}" 
			styleClass="width_9" disabled="true"/>
	</div>
	
	<util:label value="#{i18n.ClientePortal_UsuarioResponsavel}" />
	<div class="grid_18">
		<p:inputText value="#{clientePortalBean.clientePortalInstance.responsavel.nomeCompleto}" styleClass="width_17"
			required="true" requiredMessage="#{i18n.ClientePortal_Required_UsuarioResponsavel}"/>
		<p:commandButton onclick="dialogoBuscaUsuario.show()" icon="ui-icon ui-icon-search" 
			type="button" style="margin-left:8px;"/>
	</div>
	
	<util:label grid="9" value="#{i18n.ClientePortal_DataCadastro}" />
	<util:label grid="9" value="#{i18n.ClientePortal_DataAprovacao}" />
	<div class="grid_9">
		<p:inputText value="#{clientePortalBean.clientePortalInstance.dataCadastro}" 
			styleClass="width_8" disabled="true">
			<f:convertDateTime pattern="dd 'de' MMM 'de' yyyy" />
		</p:inputText>
	</div>
	<div class="grid_9">
		<p:inputText value="#{clientePortalBean.clientePortalInstance.dataAprovacao}" 
			styleClass="width_9" disabled="true">
			<f:convertDateTime pattern="dd 'de' MMM 'de' yyyy" />
		</p:inputText>
	</div>
	
	<util:label value="#{i18n.ClientePortal_Observacoes}" />
	<div class="grid_18">
		<p:inputTextarea autoResize="false" styleClass="width_18" rows="5"
			value="#{clientePortalBean.clientePortalInstance.observacoes}" />
	</div>
	
	<div class="grid_18">
	</div>
	
</f:view>